//
//  NSDictionary+MLKit.m
//  Pods
//
//  Created by molon on 15/7/21.
//
//

#import "NSDictionary+MLKit.h"

@implementation NSDictionary (MLKit)

- (NSMutableDictionary *)dictionaryWithLowercaseKeys
{
    NSMutableDictionary *result = [NSMutableDictionary dictionaryWithCapacity:self.count];
    for (NSString *key in [self allKeys]) {
        NSAssert([key isKindOfClass:[NSString class]], @"需要转换的字典里的key必须为NSString");
        [result setObject:[self objectForKey:key] forKey:[key lowercaseString]];
    }
    return result;
}

@end
